libxc: Fix xc_tmem_control to return proper error.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Mar 2015 00:24:13 +0000 (20:24 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Mar 2015 16:06:42 +0000 (16:06 +0000)
commitaf5d428947eec99fd08fd17bcbd364730e5f8fab
tree29d1c34b3cecc981bcaf76893e2f1ac45da3d2be
parent73367cf3b4b450475e3ac468abb3467d4b61b09c
libxc: Fix xc_tmem_control to return proper error.

The API returns now negative values on error and stashes
the error in errno. Fix the user of this API.

The 'xc_hypercall_bounce_pre' can fail - and if so it will
stash its errno values - no need to over-write it.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_tmem.c
tools/xenstat/libxenstat/src/xenstat.c